﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildWinePartyRankInfo extends IMessageBase
    {
        public var rankInfo:Array;
        public var exp:Number;
        public var contribution:int;
        public var num:int;
        public var percent:int;
        public var updateType:int;
        public const _type:int = 5098;
        public static var _regist:SGuildWinePartyRankInfo = new SGuildWinePartyRankInfo(true);

        public function SGuildWinePartyRankInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildWinePartyRankInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            SeqGuildWinePartyDrunkInfoHelper.write(param1, this.rankInfo);
            param1.writeLong(this.exp);
            param1.writeInt(this.contribution);
            param1.writeInt(this.num);
            param1.writeInt(this.percent);
            param1.writeInt(this.updateType);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.rankInfo = SeqGuildWinePartyDrunkInfoHelper.read(param1);
            this.exp = param1.readLong();
            this.contribution = param1.readInt();
            this.num = param1.readInt();
            this.percent = param1.readInt();
            this.updateType = param1.readInt();
            return;
        }// end function

    }
}
